export const shiwuProductColumns = context => {
  return [
    {
      prop: 'productCode',
      label: '产品编号',
      minWidth: 120
    },
    {
      prop: 'childCategoryName',
      label: '产品类目',
      minWidth: 120
    },
    {
      prop: 'name',
      label: '产品名称',
      minWidth: 120
    },
    {
      prop: 'specification',
      label: '规格',
      minWidth: 120
    },
    {
      prop: 'unit',
      label: '单位',
      minWidth: 120
    },
    {
      prop: 'apartmentListName',
      label: '可售部门',
      minWidth: 120
    },
    {
      prop: 'costPrice',
      label: '成本价',
      minWidth: 120
    },
    {
      prop: 'minSalePrice',
      label: '最低销售单价',
      minWidth: 120
    },
    {
      prop: 'deliveryMoney',
      label: '运费',
      minWidth: 120
    },
    {
      label: '操作',
      headFixed: '1',
      fixed: 'right',
      render: (h, row, index) => {
        return [
          <el-button
            type="text"
            onClick={() => {
              context.onDel(row, index)
            }}
          >
            移除
          </el-button>
        ]
      }
    }
  ]
}
